{include file="inc/header_index_mui.html"}
<link type="text/css" rel="stylesheet" href="css/common.css">
<link type="text/css" rel="stylesheet" href="css/game.css">
<style>
	.aui-switch.aui-switch-danger:checked{    
		border-color: #e74c3c;
    box-shadow: #e74c3c 0 0 0 26px inset;
    background-color: #e74c3c;}
	.aui-switch:checked:before{
		left: 20px;
    transition: left 0.2s;}
  .aui-switch:before{
  	width: 18px;
    height: 18px;
    position: absolute;
    top: 0px;
    left: 0px;
    border-radius: 13px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    content: '';
  }
</style>
<div class="main_xy pt50"> 

	<!----> 

	<!-- slideTo tab -->
	<form name="search_form" action="index.php" method="get" >
	<div id="sousuo" style="margin-top: 10px;" >
		<input type="hidden" name="ctl" value="game" />
		<input type="hidden" name="act" value="search" />
		 <input style="width: 60%;margin-left: 20px;" type="text" name = "deal_id" value="{$data.deal_id}" />
		 
		<div id="sousuo" style="background: dodgerblue;border-radius:10px ;width: 20%;text-align: center;margin-right: 10px;" class="fr" ><input type="submit" value="点击搜索" /></div>
		
	</div>
	</form>
<?php //print_r($this->_var);?>
	<? if($this->_var['data']['game']):?>
	 <div class="swiper-container ">
      <div class="swiper-wrapper"> 
        
        <!----------------未收回开始-------------------------->
        <div class="swiper-slide" id="hotne_cont1">
          <div class="sousuo_com">
            <ul class="sousuo_list">
              <li class="sousuo_list_h">
                <div class="sousuo_h">
                  <p class="sousuo_number"><span>房间：{$data.game.name}</span><span>人数：2/8</span></p>
                  <div class="sousuo_xx">
                    <div class="sousuo_pic lf"><a href="#"><img src="images/rzjh.png"></a>
                        <p>人在江湖飘</p>
                    </div>
                    <!---->
                    <div class="sousuo_neirong lf">
                      <div class="ss_top"><span class="lf">房主：司马懿</span><span class="rt">尚未开始</span>
                        <div class="clear"></div>
                      </div>
                      <div class="ss_center">
                        <div class="lf renjun"><span class="lf">人均：</span><span class="lf"><img src="images/xing.png"></span><span class="lf">10</span></div>
                        <div class="jinru_ant rt"><a href="#">点击进入</a></div>
                         <div class="clear"></div>
                        </div>
                      <div class="ss_down">
                          <div class="ss_down_z lf"><p class="f14 aui-color-c">密码</p></div>
                          <div class="ss_down_c lf"><input type="password"></div>
                          <div class="ss_down_y rt aui-mar-l-10">
       
            <input type="checkbox" class="aui-switch aui-switch-danger aui-pull-right" checked>
      
                         </div>
                         <div class="clear"></div>
                      </div>
                      
                      
                    </div>
                    <div class="clear"></div>
                  </div>
                  <!---->
                  <div class="success_icon"><img src="images/dc.png"></div>
                  <div class="clear"></div>
                </div>
                <!----> 
                
                <!--列表信息-->
                <div class="flex-con">
                  <div class="bg_color">
                    <section data-am-widget="accordion" class="am-accordion am-accordion-gapped" data-am-accordion="{  }"> 
                      
                      <!--dl-->
                      <dl class="am-accordion-item">
                        <dt class="am-accordion-title">
                          <p> 商品描述</p>
                        </dt>
                        <dd class="am-accordion-content am-collapse">
                          <ul class="wsh_list">
                            <li class="wsh_list_h">
                                <div class="ss_fl lf">
                                    <p>商品名称</p>
                                    <img src="images/1.jpg">
                                </div>
                                
                                <div class="ss_fr rt">
                                    <p class="ss_com">商品介绍商品介绍商品介绍商品介绍商品介绍商品介绍商品介绍商品介绍商品介绍</p>
                                </div>
 
 
                              <div class="clear"></div>
                            </li>
                            <!--li end-->
                            
                          </ul>
                        </dd>
                      </dl>
                      <!--dl--> 
                      
                    </section>
                  </div>
                </div>
                <!--列表信息end--> 
                
              </li>
            </ul>
          </div>
        </div>
<!--         -------------------未收回结束--------------------->
        
      </div>
    </div>
	
	<?else:?>
	<div class="nomsg" style="margin-top: 30px;color: red;">*无擂台信息</div>
	<?endif;?>
	


</div>


<?php /*
$this->_var['pagecss'][] = $this->_var['TMPL_REAL']."/css/public.css";	
$this->_var['pagecss'][] = $this->_var['TMPL_REAL']."/css/style.css";	
$this->_var['pagecss'][] = $this->_var['TMPL_REAL']."/css/color.css";	
$this->_var['pagecss'][] = $this->_var['TMPL_REAL']."/css/search_new.css";

$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/utils/jquery-1.6.2.min.js";
$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/utils/jquery.bgiframe.js";
$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/utils/jquery.timer.js";
$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/utils/jquery.weebox.js";
$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/utils/jquery.touchwipe.js";

$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/fanwe_utils/fanweUI.js";
$this->_var['cpagejs'][] = $this->_var['TMPL_REAL']."/js/fanwe_utils/fanweUI.js";

$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/script.js";
$this->_var['cpagejs'][] = $this->_var['TMPL_REAL']."/js/script.js";

$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/search.js";


?>
{include file="inc/header_title_home.html"}
<div class="wrap">
				<div class="content">
				<form name="search_form" action="" method="post" >
				<div class="search_box">
					  <div class="search_text">
					  	    <div class="ico"><i class="iconfont">&#xe662;</i></div>
							<div class="box"><input type="text" name = "deal_id" value="{$data.deal_id}" placeholder="请输入搜索"></div>
					  </div>
					  <div class="search_bottom">
					  	  <input type="submit"  value="搜索">
					  </div>

				</div>	 
				</form>


				{if $data.game}
				<div class="hot_tag_box">
					 <ul>
						 <li><a  href="javascript:;">{$data.game.name} <span  onclick="tjiao({$data.game.id})">点击加入</span></a></li>
					   </ul>
				</div>
				{/if}
				</div>
			
</div>
<script>
	isTrue = true;
	function tjiao(id){
		if(isTrue) {
			isTrue = false;
			$.ajax({
				url: '/wap/index.php?ctl=game&act=goumai',
				type: 'POST',
				data: 'deal_id=' + id + '&rnum=' + Math.random(),
				dataType: "json",
				success: function (data) {
					if(data.status=="1"){
						window.location.href='/wap/index.php?ctl=game&act=join&deal_id='+data.deal_id;
					}else{
						alert(data.info);
					}
					isTrue = true;
				},
				error: function () {
					//alert("系统错误，请联系管理员");
				}
			});
		}
		return false;
	}
</script>
{include file="inc/footer_index.html"}
